home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 421 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: news.Stanford.EDU!not-for-mail
  2. From: magical@leland.Stanford.EDU (Alexander Y. Lin)
  3. Newsgroups: comp.lang.c
  4. Subject: How to RUN a program in Unix?
  5. Date: 4 Jan 1996 23:04:57 -0800
  6. Organization: Stanford University
  7. Message-ID: <4ciiip$150@elaine37.Stanford.EDU>
  8. NNTP-Posting-Host: elaine37.stanford.edu
  9.  
  10. Argh... you guys are my last hope. I am learning to use gcc and makefiles
  11. and finished an assignment where the makefile was already created for 
  12. me. It took the following files(*):
  13.  
  14.     prog.c prog.h progtest.c 
  15.  
  16. and additionally created these:
  17.  
  18.     prog.o progtest.o progtest*
  19.  
  20. where progtest.c was a program to test the functions in the module prog.
  21.  
  22. Now I'm trying to run the progtest program to see if it works! But I can't
  23. for my life figure out how! I tried to gdb progtest and then type run, but
  24. it just says "program exited normally" without the output. (progtest 
  25. prints a lits of words to stdout.)
  26.  
  27. So my question is, how to run a gcc/makefile compiled program? Also, 
  28. I understand the .o are object files, but what is progtest*?
  29.  
  30. Thanks for any info. E-mail would be most appreciated, but posting is
  31. fine too.
  32.  
  33. magical@leland.stanford.edu
  34.